package top.chmin.project.cloud.sys.code.info;

import java.util.List;
import top.chmin.project.cloud.common.Page;
import org.springframework.web.bind.annotation.RestController;
import jakarta.annotation.Resource;



/**
 * chmin
 * 2024-01-26 13:58:12
 * cloud-code
 */
@RestController
public class CodeInfoController implements
/* append $controllerSelectOptionRestAppender$ */
        CodeInfoSaveRest,
        CodeInfoSelectRest,
        CodeInfoUpdateRest,
        CodeInfoDeleteRest,
        CodeInfoPageRest {

    @Resource
    private CodeInfoService codeInfoService;

    @Override
    public int save(CodeInfoSaveRest.P p) {
        return codeInfoService.save(p);
    }

    @Override
    public CodeInfoSelectRest.R select(CodeInfoSelectRest.P p) {
        return codeInfoService.select(p);
    }

    @Override
    public int update(CodeInfoUpdateRest.P p) {
        return codeInfoService.update(p);
    }

    @Override
    public int delete(CodeInfoDeleteRest.P p) {
        return codeInfoService.delete(p);
    }

    @Override
    public Page<CodeInfoPageRest.R> page(CodeInfoPageRest.P p) {
        return codeInfoService.page(p);
    }
    /* append $controllerSelectOptionMethodAppender$ */
}
